package com.yanqu.road.server.cmd.activity.biaoju.cross;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.BiaoJuProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.protocol.ClientProtocol;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.S_BIAOJU_JOIN_ESCORT_CROSS_BACK, desc = "加入押镖跨服返回")
public class BiaoJuJoinEscortCrossBackCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        BiaoJuProto.BiaoJuJoinEscortRespMsg respMsg = BiaoJuProto.BiaoJuJoinEscortRespMsg.parseFrom(packet.getBytes());

        player.sendPacket(ClientProtocol.U_BIAOJU_JOIN_ESCORT, respMsg.toBuilder());
    }

    @Override
    public void sendData(GamePlayer player) {
    }

}
